<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <title>Demo - DPL Tabs</title>
    <link href="../../../css/assets/dpl/base.css" rel="stylesheet"/>
    <link href="../../../css/demo/dpl/assets/docs.css" rel="stylesheet"/>
    <link href="../../../button/assets/dpl.css" rel="stylesheet"/>
    <link href="../../assets/dpl.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <h2>KISSY.Tabs</h2>

    <div class="row">
        <div class="span8">
            <h3>简介</h3>

            <p>KISSY Tabs 支持四种格式：top(default),left,bottom,left</p>

            <p>只要 new 时配置下或者 markup 中指定不同的 class 即可。</p>
        </div>
        <div class="span16">

            <h3>实例</h3>

            <div class="ks-tabs ks-tabs-top">
                <div class="ks-tabs-bar">
                    <div class="ks-tabs-tab ks-button ks-tabs-tab-selected ks-tabs-tab-closable">
                        <div class="ks-tabs-tab-content">Section 1</div>
                        <span class="ks-tabs-tab-close"></span>
                    </div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 2</div>
                    </div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 3</div>
                    </div>
                </div>
                <div class="ks-tabs-body">
                    <div class="ks-tabs-panel ks-tabs-panel-selected">
                        <p>I'm in Section 1.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>Howdy, I'm in Section 2.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>What up girl, this is Section 3.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <h3>各种方向的 tab</h3>


    <div class="row">
        <div class="span8">
            <h4>tab 在底部</h4>

            <p>tabs 体在顶部，tab 在底部</p>

            <div class="ks-tabs ks-tabs-bottom">
                <div class="ks-tabs-body">
                    <div class="ks-tabs-panel ks-tabs-panel-selected">
                        <p>I'm in Section 1.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>Howdy, I'm in Section 2.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>What up girl, this is Section 3.</p>
                    </div>
                </div>
                <div class="ks-tabs-bar">
                    <div class="ks-tabs-tab ks-button ks-tabs-tab-selected"><div class="ks-tabs-tab-content">Section 1</div></div>
                    <div class="ks-tabs-tab ks-button"><div class="ks-tabs-tab-content">Section 2</div></div>
                    <div class="ks-tabs-tab ks-button"><div class="ks-tabs-tab-content">Section 3</div></div>
                </div>
            </div>
        </div>
        <div class="span8">
            <h4>tab 在左侧</h4>

            <p>tabs 体在右侧，tab 在左侧</p>

            <div class="ks-tabs ks-tabs-left">
                <div class="ks-tabs-bar">
                    <div class="ks-tabs-tab ks-button ks-tabs-tab-selected">
                        <div class="ks-tabs-tab-content">Section 1</div></div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 2</div></div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 3</div></div>
                </div>
                <div class="ks-tabs-body">
                    <div class="ks-tabs-panel ks-tabs-panel-selected">
                        <p>I'm in Section 1.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>Howdy, I'm in Section 2.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>What up girl, this is Section 3.</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="span8">
            <h4>tab 在右侧</h4>

            <p>tabs 体在左侧，tab 在右侧</p>

            <div class="ks-tabs ks-tabs-right">
                <div class="ks-tabs-bar">
                    <div class="ks-tabs-tab ks-button ks-tabs-tab-selected">
                        <div class="ks-tabs-tab-content">Section 1</div>
                    </div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 2</div>
                    </div>
                    <div class="ks-tabs-tab ks-button">
                        <div class="ks-tabs-tab-content">Section 3</div>
                    </div>
                </div>
                <div class="ks-tabs-body">
                    <div class="ks-tabs-panel ks-tabs-panel-selected">
                        <p>I'm in Section 1.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>Howdy, I'm in Section 2.</p>
                    </div>
                    <div class="ks-tabs-panel">
                        <p>What up girl, this is Section 3.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/kissy/build/seed-debug.js"></script>
<script src="/kissy/src/package.js"></script>
<script>
    KISSY.use("tabs,node", function (S, Tabs,$) {

        $(".ks-tabs").each(function (n) {
            new Tabs({
                srcNode: n
            }).render();
        });

    });
</script>
</body>
</html>